/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdSectionAlgorithm;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 型材算法业务对象 isfd_section_algorithm
 *
 * @author hxloongs
 * @date 2024-07-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdSectionAlgorithm.class, reverseConvertGenerate = false)
public class IsfdSectionAlgorithmBo extends BaseEntity {

    /**
     * 型材算法id
     */
    @NotNull(message = "型材算法id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 自定义算法，python脚本
     */
    @NotBlank(message = "自定义算法，python脚本不能为空", groups = {AddGroup.class, EditGroup.class})
    private String customAlgorithm;
}
